<!--测试手机网站调用支付宝支付-->
<html>
<head>
    <meta charset="UTF-8">
    <title>测试手机网站调用支付宝支付</title>
    <script src="https://how2j.cn/study/jquery.min.js"></script>
</head>
<body>

<!--<form action="http://192.168.1.229:8005/alipay/order" method="post" target="frameName">-->
<!--    <input type="submit" name="提交">-->
<!--</form>-->
<button id="submit">提交</button>
<iframe id="result" style="display: none"></iframe>
</body>
<script>
    $(function () {
        $("#submit").click(function () {
            $.ajax({
                type: "POST",
                url: "http://192.168.1.229:8005/alipay/order",
                data: {
                    draweeUserId: 1,
                    payeeUserId: 2,
                    subject: "iphone",
                    amount: "33.99"
                },
                success: function (res) {
                    $("#result").attr("srcdoc", res.data.form);
                }

            })
        });


    })
</script>
</html>
